<template>
  <ComponentContainerProperty v-model="formData.style">
    <el-form label-width="80px" :model="formData" :rules="rules">
      
      <el-form-item label="背景颜色" prop="backgroundColor">
        <ColorInput v-model="formData.backgroundColor" />
      </el-form-item>
      <el-form-item label="文字颜色" prop="textColor">
        <ColorInput v-model="formData.textColor" />
      </el-form-item>
      
    </el-form>
  </ComponentContainerProperty>
</template>

<script setup lang="ts">
import { StorePickerProperty } from './config'
import { useVModel } from '@vueuse/core'
// 门店选择器属性面板
defineOptions({ name: 'StorePickerProperty' })
// 表单校验
const rules = {
  content: [{ required: true, message: '请输入门店名称', trigger: 'blur' }]
}

const props = defineProps<{ modelValue: StorePickerProperty }>()
const emit = defineEmits(['update:modelValue'])
const formData = useVModel(props, 'modelValue', emit)
</script>

<style scoped lang="scss"></style> 